package com.huawei.entity;

import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import java.util.List;


/**
 * @ClassName User
 * @Description TODO
 * @Author 马效鹏
 * @Date 2021/11/27 20:05
 */
public class User {
    private int id;
    private String name;
    private String password;
    private String mobile;
    private double money;
    private String gender;
    private String is_status;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private Date reg_time;

   // private List<Dingdan> dingdan1;

private  Dingdan dingdan1;

    public Dingdan getDingdan1() {
        return dingdan1;
    }

    public void setDingdan1(Dingdan dingdan1) {
        this.dingdan1 = dingdan1;
    }

    public User(){

    }
    public User(int id, String name, String password, String mobile, double money, String gender, String is_status, Date reg_time) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.mobile = mobile;
        this.money = money;
        this.gender = gender;
        this.is_status = is_status;
        this.reg_time = reg_time;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getIs_status() {
        return is_status;
    }

    public void setIs_status(String is_status) {
        this.is_status = is_status;
    }

    public Date getReg_time() {
        return reg_time;
    }

    public void setReg_time(Date reg_time) {
        this.reg_time = reg_time;
    }
}
